{{#index}}
<div class="main-content">
    <div class="div-title">轮播图列表</div>
    <div class="search-div">
        <div class="search-content">
            <div class="search">
                <label class="">组类型</label>
                <input type="text" class="search-input search-param" name="groupType"/>
            </div>
            <div class="search">
                <label class="">标题</label>
                <input type="text" class="e-aaa search-input search-param" name="title"/>
            </div>
        </div>

        <div class="action-div">
            <button class="btn btn-sm btn-primary e-go" href="module/bannerSetting/add">新增</button>
            <button class="btn btn-sm btn-primary e-table-search" table-class-name="bootstrapTable">搜索</button>
        </div>
    </div>

    <div class="table-action-div">
        <button class="btn btn-sm btn-primary e-table-batch-delete" url="bannerSetting/batchDelete"
                table-class-name="bootstrapTable">批量删除
        </button>
        <button class="btn btn-sm btn-primary e-table-export" url="bannerSetting/export"
                search-param-class-name="search-param">导出
        </button>
    </div>
    <table class="bootstrapTable">

    </table>
</div>
{{/index}}


{{#add}}
<div class="main-content">
    <div class="div-title">添加轮播图</div>
    <form class="data-form">
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">标题</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control data-param" name="title" required="required">
                    </div>
                </div>
            </div>
        </div>
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">图片url</label>
                    <div class="col-sm-7">
                        <div style="float: left" id="uploader"></div>
                        <img src="" style="width: 200px;float: left;display: none;margin-left: 20px;" id="imgUrl">
                        <input type="hidden" id="imgUrlVal" class="form-control data-param" name="imgUrl" required="required">
                    </div>
                </div>
            </div>
        </div>
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">组类型</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control data-param" name="groupType" required="required">
                    </div>
                </div>
            </div>
        </div>


        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">跳转类型</label>
                    <div class="col-sm-7">
                        <select class="form-control data-param" name="type" required="required">
                            <option value="0">无跳转</option>
                            <option value="1">内链</option>
                            <option value="2">外链</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12 center-action-div">
                <button class="btn btn-primary e-submit" type="button">提交</button>
                <button class="btn btn-primary e-go-index" type="button">返回</button>
            </div>
        </div>
    </form>
</div>
{{/add}}


{{#info}}
<div class="main-content">
    <div class="div-title">轮播图详情</div>
    <div class="form-horizontal m-t row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">标题</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control data-param" readonly="readonly" name="title"
                           value="${data.bannerSetting.title}" required="required">
                </div>
            </div>
        </div>
    </div>
    <div class="form-horizontal m-t row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">图片url</label>
                <div class="col-sm-7">
                    <img src="${data.bannerSetting.imgUrl}" style="width: 200px;float: left;margin-left: 20px;">
                </div>
            </div>
        </div>
    </div>
    <div class="form-horizontal m-t row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">跳转类型</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control data-param" readonly="readonly" name="type"
                           value="${data.bannerSetting.typeStr}" required="required">
                </div>
            </div>
        </div>
    </div>
    <div class="form-horizontal m-t row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">组类型</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control data-param" readonly="readonly" name="groupType"
                           value="${data.bannerSetting.groupType}" required="required">
                </div>
            </div>
        </div>
    </div>
    <div class="form-horizontal m-t row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间</label>
                <div class="col-sm-7">
                    <input type="text" class="form-control data-param" readonly="readonly" name="createDate"
                           value="${data.bannerSetting.createDate}" required="required">
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-sm-12 center-action-div">
            <button class="btn btn-primary e-go-index" type="button">返回</button>
        </div>
    </div>
</div>
{{/info}}


{{#update}}
<div class="main-content">
    <div class="div-title">修改轮播图</div>
    <form class="data-form">
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">标题</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control data-param" name="title"
                               value="${data.bannerSetting.title}" required="required">
                    </div>
                </div>
            </div>
        </div>
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">图片url</label>
                    <div class="col-sm-7">
                        <div style="float: left" id="infoUploader"></div>
                        <img src="${data.bannerSetting.imgUrl}" style="width: 200px;float: left;margin-left: 20px;" class="imgUrl">
                        <input type="hidden"  class="form-control data-param imgUrlVal" name="imgUrl" required="required">
                    </div>
                </div>
            </div>

        </div>
        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">跳转类型</label>
                    <div class="col-sm-7">
                        <select class="form-control data-param typeOption" name="type" required="required">
                            <option value="0">无跳转</option>
                            <option value="1">内链</option>
                            <option value="2">外链</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-horizontal m-t row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">组类型</label>
                    <div class="col-sm-7">
                        <input type="text" class="form-control data-param" name="groupType"
                               value="${data.bannerSetting.groupType}" required="required">
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12 center-action-div">
                <button class="btn btn-primary e-update" type="button">修改</button>
                <button class="btn btn-primary e-go-index" type="button">返回</button>
            </div>
        </div>
    </form>
</div>
{{/update}}
